using System;
using ZhCun.DbCore.Entitys;

namespace ZhCun.DBModel
{
	public partial class Sys_GridCombox : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(ColumnName = CNId, IsPrimaryKey = true, IsNotNull = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				_Id = value;
				base.SetFieldChanged(CNId) ;
			}
		}

		private System.String _FormName;
		/// <summary>
		/// 窗体的FullName
		/// </summary>
		[Entity(ColumnName = CNFormName, IsNotNull = true)]
		public System.String FormName
		{
			get { return _FormName; }
			set
			{
				_FormName = value;
				base.SetFieldChanged(CNFormName) ;
			}
		}

		private System.String _TextBoxName;
		/// <summary>
		/// 绑定的文本框控件名称
		/// </summary>
		[Entity(ColumnName = CNTextBoxName, IsNotNull = true)]
		public System.String TextBoxName
		{
			get { return _TextBoxName; }
			set
			{
				_TextBoxName = value;
				base.SetFieldChanged(CNTextBoxName) ;
			}
		}

		private System.Byte _MaxRowCount;
		/// <summary>
		/// Grid最多显示的行号，默认为10，最高不不超过255
		/// </summary>
		[Entity(ColumnName = CNMaxRowCount, IsNotNull = true)]
		public System.Byte MaxRowCount
		{
			get { return _MaxRowCount; }
			set
			{
				_MaxRowCount = value;
				base.SetFieldChanged(CNMaxRowCount) ;
			}
		}

		private System.String _RetrunTagField;
		/// <summary>
		/// 返回文本框Tag属性的字段
		/// </summary>
		[Entity(ColumnName = CNRetrunTagField)]
		public System.String RetrunTagField
		{
			get { return _RetrunTagField; }
			set
			{
				_RetrunTagField = value;
				base.SetFieldChanged(CNRetrunTagField) ;
			}
		}

		private System.String _ReturnTextField;
		/// <summary>
		/// 返回文本框Text属性的字段
		/// </summary>
		[Entity(ColumnName = CNReturnTextField, IsNotNull = true)]
		public System.String ReturnTextField
		{
			get { return _ReturnTextField; }
			set
			{
				_ReturnTextField = value;
				base.SetFieldChanged(CNReturnTextField) ;
			}
		}

		private System.String _AutoSizeColumnsMode;
		/// <summary>
		/// AutoSizeColumnsMode
		/// </summary>
		[Entity(ColumnName = CNAutoSizeColumnsMode)]
		public System.String AutoSizeColumnsMode
		{
			get { return _AutoSizeColumnsMode; }
			set
			{
				_AutoSizeColumnsMode = value;
				base.SetFieldChanged(CNAutoSizeColumnsMode) ;
			}
		}

		private System.Boolean _IsAnyKeyShow;
		/// <summary>
		/// 是否任意键搜索数据源
		/// </summary>
		[Entity(ColumnName = CNIsAnyKeyShow, IsNotNull = true)]
		public System.Boolean IsAnyKeyShow
		{
			get { return _IsAnyKeyShow; }
			set
			{
				_IsAnyKeyShow = value;
				base.SetFieldChanged(CNIsAnyKeyShow) ;
			}
		}

		private System.Boolean _IsAutoSelected;
		/// <summary>
		/// 当只有一行数据时是否自动选择退出（默认为true）
		/// </summary>
		[Entity(ColumnName = CNIsAutoSelected, IsNotNull = true)]
		public System.Boolean IsAutoSelected
		{
			get { return _IsAutoSelected; }
			set
			{
				_IsAutoSelected = value;
				base.SetFieldChanged(CNIsAutoSelected) ;
			}
		}

		private System.Byte _KeyPressMinlength;
		/// <summary>
		/// 当非回车显示时，文本中内容最小值是多少才进行搜索显示（默认为0）
		/// </summary>
		[Entity(ColumnName = CNKeyPressMinlength, IsNotNull = true)]
		public System.Byte KeyPressMinlength
		{
			get { return _KeyPressMinlength; }
			set
			{
				_KeyPressMinlength = value;
				base.SetFieldChanged(CNKeyPressMinlength) ;
			}
		}

		private System.Boolean _IsSendTabKey;
		/// <summary>
		/// 当选中节点后是否自动响应Tab按键，焦点到下一个TabIdnex（默认为true）
		/// </summary>
		[Entity(ColumnName = CNIsSendTabKey, IsNotNull = true)]
		public System.Boolean IsSendTabKey
		{
			get { return _IsSendTabKey; }
			set
			{
				_IsSendTabKey = value;
				base.SetFieldChanged(CNIsSendTabKey) ;
			}
		}

		private System.String _Remark;
		/// <summary>
		/// Remark
		/// </summary>
		[Entity(ColumnName = CNRemark)]
		public System.String Remark
		{
			get { return _Remark; }
			set
			{
				_Remark = value;
				base.SetFieldChanged(CNRemark) ;
			}
		}

		private System.Boolean _IsUse;
		/// <summary>
		/// IsUse
		/// </summary>
		[Entity(ColumnName = CNIsUse, IsNotNull = true)]
		public System.Boolean IsUse
		{
			get { return _IsUse; }
			set
			{
				_IsUse = value;
				base.SetFieldChanged(CNIsUse) ;
			}
		}

		private System.DateTime _AddTime;
		/// <summary>
		/// AddTime
		/// </summary>
		[Entity(ColumnName = CNAddTime, IsNotNull = true)]
		public System.DateTime AddTime
		{
			get { return _AddTime; }
			set
			{
				_AddTime = value;
				base.SetFieldChanged(CNAddTime) ;
			}
		}

		private System.String _AddUserId;
		/// <summary>
		/// AddUserId
		/// </summary>
		[Entity(ColumnName = CNAddUserId)]
		public System.String AddUserId
		{
			get { return _AddUserId; }
			set
			{
				_AddUserId = value;
				base.SetFieldChanged(CNAddUserId) ;
			}
		}

		private System.String _AddHost;
		/// <summary>
		/// AddHost
		/// </summary>
		[Entity(ColumnName = CNAddHost)]
		public System.String AddHost
		{
			get { return _AddHost; }
			set
			{
				_AddHost = value;
				base.SetFieldChanged(CNAddHost) ;
			}
		}

		private System.DateTime? _LastTime;
		/// <summary>
		/// LastTime
		/// </summary>
		[Entity(ColumnName = CNLastTime)]
		public System.DateTime? LastTime
		{
			get { return _LastTime; }
			set
			{
				_LastTime = value;
				base.SetFieldChanged(CNLastTime) ;
			}
		}

		private System.String _LastHost;
		/// <summary>
		/// LastHost
		/// </summary>
		[Entity(ColumnName = CNLastHost)]
		public System.String LastHost
		{
			get { return _LastHost; }
			set
			{
				_LastHost = value;
				base.SetFieldChanged(CNLastHost) ;
			}
		}

		private System.String _LastUserId;
		/// <summary>
		/// LastUserId
		/// </summary>
		[Entity(ColumnName = CNLastUserId)]
		public System.String LastUserId
		{
			get { return _LastUserId; }
			set
			{
				_LastUserId = value;
				base.SetFieldChanged(CNLastUserId) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNFormName = "FormName";
		public const string CNTextBoxName = "TextBoxName";
		public const string CNMaxRowCount = "MaxRowCount";
		public const string CNRetrunTagField = "RetrunTagField";
		public const string CNReturnTextField = "ReturnTextField";
		public const string CNAutoSizeColumnsMode = "AutoSizeColumnsMode";
		public const string CNIsAnyKeyShow = "IsAnyKeyShow";
		public const string CNIsAutoSelected = "IsAutoSelected";
		public const string CNKeyPressMinlength = "KeyPressMinlength";
		public const string CNIsSendTabKey = "IsSendTabKey";
		public const string CNRemark = "Remark";
		public const string CNIsUse = "IsUse";
		public const string CNAddTime = "AddTime";
		public const string CNAddUserId = "AddUserId";
		public const string CNAddHost = "AddHost";
		public const string CNLastTime = "LastTime";
		public const string CNLastHost = "LastHost";
		public const string CNLastUserId = "LastUserId";
		#endregion

	}
}
